Carbon


AddPt

Header: Quickdraw.h Carbon status: Supported

Adds the coordinates of two points.

void AddPt (
    Point src, 
    Point *dst
);
Parameter descriptions
src

A point, the coordinates of which are to be added to the point in the dstPt parameter.

dst

A pointer to a point, the coordinates of which are to be added to the point in the srcPt parameter. On return, this value contains the result of adding the coordinates of the points you supplied in the srcPt and dstPt parameters.

DISCUSSION

The AddPt function adds the coordinates of the point specified in the srcPt parameter to the coordinates of the point specified in the dstPt parameter, and returns the result in the dstPt parameter.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)